{% extends "../adminbase.html" %}

{% block content %}
	<h1>{{titletext}}</h1>

    <form action="/editpage" method="post">
      <div>
      <input type=hidden name="sitename" value="{{currentwebsite.sitename}}">
      Page name:
      {% if is_update %}
      	<input type=hidden name="prevpagename" value="{{pagename}}">
      {% else %}
      	<input type=hidden name="isnew" value="isnew">
      {% endif %}
      </div>
      <div><INPUT TYPE=TEXT SIZE=40 NAME="pagename" value="{{pagename}}"></div>
      <div>Content:</div>
      <div><input type="submit" value="{{buttontext}}"></div>
      <div><textarea name="content" rows="60" cols="80">{{content}}</textarea></div>
      <div><input type="submit" value="{{buttontext}}"></div>
    </form>
{% endblock %}
